package com;

import com.dom.Studentimp;
import com.dom.Studentimp;
import com.dom.studentinter;

public class StudentAdd {
    com.dom.studentinter studentinter=new Studentimp();
    public void   addstudent(Student s){
        studentinter.add(s);
    }
    public  void deletestudent(Student s){
        studentinter.delete(s);
    }
    public void updatestudent(Student s){
        studentinter.updata(s);
    }
    public void findbyid(int id){
        Student s=studentinter.findbyid(id);
        System.out.println(s.getId()+" "+s.getName()+" "+s.getAge());
    }
}

